package com.hailin.pigserver.service;

import com.hailin.pigapi.model.Pig;
import com.hailin.pigserver.biz.PigServiceBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "pigService")
public class PigService {

    @Autowired
    private PigServiceBiz pigServiceBiz;

    public List<Pig> queryAll(){
        return pigServiceBiz.queryAll();
    }
}
